<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-uid" data-rule="required" min="0" class="form-control" name="row[uid]" type="number" value="{$row.uid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Old_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-old_rate" data-rule="required" min="0" class="form-control" name="row[old_rate]" type="number" value="{$row.old_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_rate" data-rule="required" min="0" class="form-control" name="row[new_rate]" type="number" value="{$row.new_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Change_val')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-change_val" data-rule="required" class="form-control" name="row[change_val]" type="number" value="{$row.change_val|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Relation_order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-relation_order_id" data-rule="required" min="0" data-source="relation/order/index" class="form-control selectpage" name="row[relation_order_id]" type="text" value="{$row.relation_order_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Relation_order_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-relation_order_type" data-rule="required" min="0" class="form-control" name="row[relation_order_type]" type="number" value="{$row.relation_order_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_uid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_uid" data-rule="required" min="0" class="form-control" name="row[admin_uid]" type="number" value="{$row.admin_uid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" min="0" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" data-rule="required" min="0" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
